#include "RemoteTest.h"

RemoteTest::RemoteTest(QRemoteItem *parent):QRemoteItem(parent)
{
    sub(new SubObjectTest(this));
}

SubObjectTest::SubObjectTest(QRemoteItem *parent):QRemoteItem(parent)
{

}

int RemoteTest::testSlot(int input)
{
    return input + 1;
}

int RemoteTest::ownerSlot(int input)
{
    if(isSource())
    {
        qDebug()<<"source exec";
    }

    if(isReplica())
    {
        qDebug()<<"replica exec";
    }

    return input + 1;
}
